package cn.virens.common.project.generator.database.datasource.info;

import cn.virens.common.project.generator.database.utils.PathUtil;

import java.io.Serializable;

@SuppressWarnings("serial")
public class TableInfo implements Serializable {
    /**
     * 表名
     */
    private String name;
    /**
     * 库名
     */
    private String schema;
    /**
     * 注释
     */
    private String comment;

    public String getName() {
        return name;
    }

    public String getEntity() {
        return PathUtil.camel0(name);
    }

    public String getSchema() {
        return schema;
    }

    public String getComment() {
        return comment;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSchema(String schema) {
        this.schema = schema;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

}
